package com.itmiaojie.service;

import com.itmiaojie.pojo.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itmiaojie.pojo.ResponseResult;
import com.itmiaojie.pojo.dto.ArticleDto;

/**
 *
 */
public interface ArticleService extends IService<Article> {

    ResponseResult getHostArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId) throws InstantiationException, IllegalAccessException, Exception;

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult insertArticle(ArticleDto articleDto);

    ResponseResult getPageCategoryList(Integer pageNum, Integer pageSize, String title, String summary);

    ResponseResult getArticleById(Long id);

    ResponseResult updateArticle(ArticleDto articleDto);

    ResponseResult deleteArticleById(Long id);
}
